package com.liyunc.demo.bundle.user.org.dao.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liyunc.demo.bundle.user.org.model.dto.output.UserPersonalAccountInfoDto;
import com.liyunc.demo.bundle.user.org.model.entity.UserPersonalAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @author liyuncong
 * @version 1.0
 * @file UserOrganizationalAccountDao
 * @brief UserOrganizationalAccountDao
 * @details UserOrganizationalAccountDao
 * @date 2022/4/26
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022/4/26                     liyuncong          Created
 */
@Mapper
public interface UserPersonalAccountMapper {

    IPage<UserPersonalAccountInfoDto> findUserPersonalAccountInfo(
        @Param("page") Page<UserPersonalAccountInfoDto> page,
        @Param("userOrganizationAccountId") Long userOrganizationAccountId,
        @Param("sort") String sort,
        @Param("keyword") String keyword
    );

    List<UserPersonalAccount> findAll(
        @Param("page") IPage<UserPersonalAccount> page,
        @Param("sort") String sort,
        @Param("keyword") String keyword
    );
}
